package com.yf1706.dao.jpa;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.yf1706.bean.QuestionBank;
import com.yf1706.bean.SingleChoice;

public interface singleselectJDAO extends CrudRepository<SingleChoice,Integer>{
	
	public List<SingleChoice> findByQuestionBank(QuestionBank q);

	public List<SingleChoice> findBySingleChoiceId(int singleChoiceId);

	/*@Query("SELECT b from single_choice b where b.qb_id=?1")
	public List<SingleChoice> findByqbId(int qbId);*/
}
